<script>
	export default {
		globalData:{
			browserPlatform: 0,
			jssdk: wx,
		},
		onLaunch: function() {
			console.log('App Launch')
			// this.browserPlatformInit();
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			browserPlatformInit() {
				if (/MicroMessenger/.test(window.navigator.userAgent)) {
					this.globalData.browserPlatform = 0;
				} else if (/AlipayClient/.test(window.navigator.userAgent)) {
					this.globalData.browserPlatform = 1;
				} else {
					this.globalData.browserPlatform = 2;
				}
			},
		}
	}
</script>


<style lang="less">
@import './common/less/base';
</style>

